package one.stand.response.essay;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import one.stand.model.essay.TaskCustomerModel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 我的任务
 * @author luoyang
 * @date 2020/5/12 15:33
 */
@Data
@ApiModel(value="MyTaskResponse对象", description="我的任务")
public class MyTaskResponse  implements Serializable {

    @ApiModelProperty(value = "任务id")
    private Long taskCustomerId;

    @ApiModelProperty(value = "文章id")
    private Long dynamicId;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "任务总分享次数,分享一次算一次")
    private String shareNum;

    @ApiModelProperty(value = "任务总获客次数,访问一次算一次")
    private String visitNum;

    @ApiModelProperty(value = "员工id")
    private Long userId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "任务开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "任务结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String endTime;

    @ApiModelProperty(value = "任务状态 0进行中 1 未开始 2 已结束")
    private Integer state;

    @ApiModelProperty(value = "查看状态 0 未查看 1已查看 -1无效不做处理")
    private Integer viewState;

    @ApiModelProperty(value = "我的任务完成情况:员工任务状态 0 未完成 1已完成 3已结束")
    List<MyTaskUserResponse> myTask;

    @ApiModelProperty(value = "数据类型 1 我收到的 2 我发布的")
    private Integer type;

    @ApiModelProperty(value = "我发布的:已完成数量")
    private Integer completed;

    @ApiModelProperty(value = "我收到的:已查看数量")
    private Integer seeViewed;

    /**
     * 总的任务人数
     */
    @ApiModelProperty(value = "总的任务人数")
    private Integer sumNum;



}
